package functionOne;

public class FnThree {
    public static void main(String[] args) {
        FnThree test=new FnThree();
        test.contact("-","jjjj","aaaa","bbbb");
        test.contact("-");

    }
    public void contact(String select,String ... strs){
        String result="";
        for (int i = 0; i < strs.length; i++) {
            if(i==0){
                result+=strs[i];
            }else {
                result+=(select+strs[i]);
            }
        }

        System.out.println(result);
    }
}
